#include "server.hpp"

void use_manual()
{
    std::cout<< "please input like: " << " \"./server port\" " << std::endl;
}


int main(int arg, char *argc[])
{
    if (arg != 2)
    {
		use_manual();
        exit(0);
    }
	
	server* test = new server(atoi(argc[1]));
	test->server_init();
    test->server_start();

    delete test;

    return 0;
}